import request from '@/utils/request';

//获取风箱数据概览
export async function getStatusInfoOverview(params) {
  return request('/api/shaojie/all/info', {
    method: 'get',
    params: params
  });
}

export async function getCurrentInfo(params) {
  return request('/api/shaojie/current/info', {
    method: 'get',
    params: params
  })
}

export async function getBellowLocation() {
  return request('/api/shaojie/bellow/location', {
    method: 'get'
  })
}


export async function getPredictInfo(params) {
  return request('/api/shaojie/predict/info',{
    method: 'get',
    params: params
  })
}


export async function getMainData(params) {
  return request('/api/shaojie/mainData/info',{
    method: 'get',
    params: params
  })
}


export async function getBellowEvaluation(params) {
  return request('/api/shaojie/bellow/status/evaluation',{
    method: 'get',
    params: params
  })
}

export async function getLatestParam() {
  return request('/api/shaojie/get_current_data',{
    method: 'get'
  })
}

export async function dataGroup(params) {
  return request('/api/shaojie/mainData/group',{
    method: 'get',
    params
  })
}

export async function updateRule(params) {
  return request('/api/shaojie/rule/update', {
    method: 'post',
    data: params
  })
}

export async function getRule(params) {
  return request('/api/shaojie/rule/get', {
    method: 'get',
    params
  })
}


